package org.example.service.impl;

import org.springframework.stereotype.Service;


@Service
public class StudentServiceImpl{

    public void insert() {

        System.out.println("调用Mapper 扣小A的钱 1000元");
            System.out.println(1/0);//模拟程序异常
        System.out.println("调用Mapper 给小A女朋友打钱1000元");

    }

    public void update() {
        System.out.println("调用Mapper的update");
    }

    public void delete() {
        System.out.println("调用Mapper的delete");
    }


}
